package com.fangrui.aop;

import lombok.extern.slf4j.Slf4j;
import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

//Created by ✎﹏ℳ๓独赏☆独醉 on 2025/5/3 18:17
@Order(1)//默认aop前置通知是按找类名字母顺序执行，也可通过此注解设置执行顺序
@Slf4j
@Component
@Aspect
public class MyAspectOrder04 {
    @Before("com.fangrui.aop.MyAspectDemo01.pc()")
    public void before() {
        log.info("before ...  4");
    }
    @After("com.fangrui.aop.MyAspectDemo01.pc()")
    public void after() {
        log.info("after ...  4");
    }
}
